home *** CD-ROM | disk | FTP | other *** search
/ IRIX 5.3 for Indy R4400 / IRIX 5.3 for Indy R4400 175MHz.img / dist / eoe2.idb / usr / sadm / install / scripts / r.sed.z / r.sed
Text File  |  1995-02-28  |  409b  |  24 lines

  1. #ident    "@(#)oampkg:pkgscripts/r.sed    1.6"
  2.  
  3. error=no
  4. while read dest
  5. do
  6.     if [ -d $dest ]
  7.     then
  8.         echo "$dest"
  9.         rmdir $dest || error=yes
  10.     elif [ -f $dest ]
  11.     then
  12.         echo "Modifying $dest"
  13.         savepath=$PKGSAV/sed${dest}
  14.         /usr/sadm/install/scripts/cmdexec /bin/sed remove $savepath $dest ||
  15.             error=yes
  16.     else
  17.         [ -r $dest ] && echo "$dest"
  18.         rm -f $dest || error=yes
  19.     fi
  20. done
  21. [ "$error" = yes ] &&
  22.     exit 2
  23. exit 0
  24.